FROM python:3.10.4-buster
ENV DOCKER_NAME=$DOCKER_NAME

RUN apt-get update && \
    apt-get install -y locales && \
    sed -i -e 's/# ru_RU.UTF-8 UTF-8/ru_RU.UTF-8 UTF-8/' /etc/locale.gen && \
    dpkg-reconfigure --frontend=noninteractive locales \
    apt-get install nano

ENV LANG ru_RU.UTF-8
ENV LC_ALL ru_RU.UTF-8

WORKDIR /app

COPY requirements.txt .
RUN pip install -r ./requirements.txt
COPY . .
